<?php

namespace app\property\model;

use app\user\model\UserModel;
use think\admin\Model;

class ExamineRepairModel extends Model
{
    protected $connection = "mysql_app";

    protected $table = "t_examine_repair";

    public function User(): \think\model\relation\HasOne
    {
        return $this->hasOne(UserModel::class, 'id', 'uid');
    }

    public function Repair(): \think\model\relation\HasOne
    {
        return $this->hasOne(PropertyRepairModel::class, 'id', 'pid');
    }
}